package com.job.zhangqiyan;

/**
 * @author zhangqiyan
 * @version 1.0
 * @since 2022-07-05 05:48:57
 */
//选择排序降序
public class Choose{
    public static void main(String[] args) {
        int[] arr = {45,76,23,90,54,21,11};

        for(int i=0;i<arr.length-1;i++){
            for(int j=i+1;j<arr.length;j++){
                if(arr[j]>arr[i]){
                    int temp=arr[j];
                    arr[j]=arr[i];
                    arr[i]=temp;
                }
            }
        }
        for (int i:arr){
            System.out.print(i+",");
        }
    }
}